
import { UserInfoAddDto } from "@/models/dtos/adminUser/userinfo/UserInfoAddDto";
import { http } from "@/utils/http";

export async function addUserInfo(addDto: UserInfoAddDto) {
    return await http.post("admin/user/manage/add", addDto)
}

export async function updateUseInfo(id: string, addDto: UserInfoAddDto) {
    return await http.put(`admin/user/manage/update/${id}`, addDto)
}

export async function getUserInfo(id: string) {
    return await http.get<UserInfoAddDto>(`admin/user/manage/detail/${id}`)
}
export async function deleteUserInfo(id: string) {
    return await http.get<UserInfoAddDto>(`admin/user/manage/detail/${id}`)
}

export async function disableUser(id: string) {
    return await http.put(`admin/user/manage/disable/${id}`)
}
export async function enableUser(id: string) {
    return await http.put(`admin/user/manage/enable/${id}`)
}